package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * 数据字典-国家
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 10:19
 * @since v1.0
 */
@Getter
public enum CustomerCountryEnum {

    // 国家
    CHINA("1", "enum.customerCountry.name.china", "china"),


    AMERICA("2", "enum.customerCountry.name.america", "america"),


    AUSTRALIA("3", "enum.customerCountry.name.australia", "australia"),


    BRAZIL("4", "enum.customerCountry.name.brazil", "brazil"),


    UK("5", "enum.customerCountry.name.uk", "uk"),


    CANADA("6", "enum.customerCountry.name.canada", "canada"),


    EGYPT("8", "enum.customerCountry.name.egypt", "egypt"),


    FRANCE("9", "enum.customerCountry.name.france", "france"),


    GERMANY("10", "enum.customerCountry.name.germany", "germany"),


    GREECE("11", "enum.customerCountry.name.greece", "greece"),


    INDIA("12", "enum.customerCountry.name.india", "india"),


    IRELAND("13", "enum.customerCountry.name.ireland", "ireland"),


    ISRAEL("14", "enum.customerCountry.name.israel", "israel"),


    ITALY("15", "enum.customerCountry.name.italy", "italy"),


    JAPAN("16", "enum.customerCountry.name.japan", "japan"),


    NETHERLANDS("17", "enum.customerCountry.name.netherlands", "netherlands"),


    NEW_ZEALAND("18", "enum.customerCountry.name.new_zealand", "newZealand"),


    PORTUGAL("19", "enum.customerCountry.name.portugal", "portugal"),


    RUSSIA("20", "enum.customerCountry.name.russia", "russia"),


    SPAIN("21", "enum.customerCountry.name.spain", "spain"),


    SWEDEN("22", "enum.customerCountry.name.sweden", "sweden"),


    SWITZERLAND("23", "enum.customerCountry.name.switzerland", "switzerland"),
    ;

    private String code;
    private String name;
    private String attr;

    CustomerCountryEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
